package com.yuke.cloud.service.omc;

import com.yuke.cloud.common.util.EncryptUtil;
import com.yuke.cloud.common.util.HttpAesUtil;

public class test2 {
    public static void main(String[] args) {
        String amount = "86500";
        System.out.println((byte)9);
        try {
            amount = HttpAesUtil.encrypt(amount,"aaaaaaaaaaaaaaaa",true,"aaaaaaaaaaaaaaaa");
            System.out.println("AES加密"+amount);
            String decode = HttpAesUtil.decrypt(amount,"aaaaaaaaaaaaaaaa",true,"aaaaaaaaaaaaaaaa");
            System.out.println("AES解密"+decode);

            String decode2 = EncryptUtil.encrypt(decode);
            System.out.println("DES加密"+decode2);

            String amount2 = EncryptUtil.decrypt(decode2);
            System.out.println("DES解密"+amount2);

            String a = HttpAesUtil.encode("123456");
            System.out.println(a);
            a="M11IWKYvNnZeOXF1HBLulQ==";


            System.out.println("00000000@"+HttpAesUtil.decode(a));
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
